package com.dragon.pear.modules.sample.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.dragon.common.spring.business.base.BaseCrudController;
import com.dragon.pear.modules.sample.domain.entity.SmpOrderEntity;
import com.dragon.pear.modules.sample.web.model.params.create.SmpOrderCreateParam;
import com.dragon.pear.modules.sample.web.model.params.update.SmpOrderUpdateParam;
import com.dragon.pear.modules.sample.web.model.params.search.SmpOrderSearchParam;
import com.dragon.pear.modules.sample.web.model.params.order.SmpOrderOrderParam;
import com.dragon.pear.modules.sample.web.model.results.SmpOrderResult;
import com.dragon.pear.modules.sample.dao.repository.SmpOrderRepository;
import com.dragon.pear.modules.sample.service.assistants.converters.SmpOrderConverter;
import com.dragon.pear.modules.sample.service.def.SmpOrderService;
import com.dragon.pear.modules.sample.web.api.SmpOrderApi;

/**
 * @author Chris Chan
 * Create on 2025-10-15 17:59
 * Use for: 订单 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("smp/order")
public class SmpOrderController implements SmpOrderApi, BaseCrudController<
        SmpOrderEntity,
        SmpOrderCreateParam,
        SmpOrderUpdateParam,
        SmpOrderSearchParam,
        SmpOrderOrderParam,
        SmpOrderResult,
        SmpOrderRepository,
        SmpOrderConverter,
        SmpOrderService
        > {

    @Autowired
    SmpOrderService smpOrderService;

    @Override
    public SmpOrderService getService() {
        return smpOrderService;
    }
}